package j05buffer;

import java.io.*;

public class J1 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream f = new BufferedInputStream(
                new FileInputStream("_1218\\src\\j05buffer\\a.txt")
        );
        System.out.println("f.read() = " + f.read());
        System.out.println("f.read() = " + f.read());
        System.out.println("f.read() = " + f.read());
        System.out.println("=====");
        BufferedOutputStream f2 = new BufferedOutputStream(
                new FileOutputStream("_1218\\src\\j05buffer\\b.txt")
        );
        f2.write('n');
        f2.write('w');
        f2.write('y');
//        f2.flush();
        f2.close();
    }
}
